<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
</head>
<body>

    <script>
        
        //字符串解构 字符串解构的语法和数组解构一致 
        //  [] 下角标...
        // 解构单位是字符
        let [a,b,c] = "abc";
        console.log(a,b,c);

        let [aa,...bb] = 'abcdef';
        console.log(aa,bb); //bb 不是字符串 字符串数组

    </script>
    
</body>
</html>